import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'bootstrap/dist/css/bootstrap.min.css'

import quillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

import axios from 'axios'
import VueAxios from 'vue-axios'
import Vuex from 'vuex'
import VueRouter from 'vue-router'

import Base64 from 'js-base64'
import router from './router.js'

Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(VueAxios, axios)
Vue.use(Vuex)
Vue.use(quillEditor)
Vue.use(Base64)

Vue.config.productionTip = false

axios.defaults.withCredentials = true


var store = new Vuex.Store({
    state:{
        UID:JSON.parse(localStorage.getItem('UID')),
        username:JSON.parse(localStorage.getItem('username')),
        email:JSON.parse(localStorage.getItem('email')),
    },
    mutations:{
    }
})

new Vue({
    render: h => h(App),
    router,
    store,
}).$mount('#app')
